xen: arm: Assume level triggered means high, not low.
authorIan Campbell <ian.campbell@citrix.com>
Mon, 2 Mar 2015 11:09:35 +0000 (11:09 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 2 Mar 2015 16:30:02 +0000 (16:30 +0000)
commit3bcf563fec26378f7f4cf1e2ad0d4d5b3f341919
tree24462f3414a1de08224fdeaa63a830248288578c
parent0c029c4da2169159064568ef4fea862a5d2cd84a
xen: arm: Assume level triggered means high, not low.

When reading back the ICFG register we cannot know the polarity of the
configuration, just that it is level or edge.

Since falling edge and low level are invalid for SPIs we should assume
rising edge and high level (we have no better information for PPIs, so
it'll have to do).

We already assumed rising edge, switch to high level as well.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/gic-v2.c
xen/arch/arm/gic-v3.c